using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using HengTong.Model._Admin;
using HengTong.Model;


namespace HengTong.ViewModel._Admin.SysDataPrivilegeVms
{
    public partial class SysDataPrivilegeTemplateVm : BaseTemplateVM
    {
        [Display(Name = "实体类型")]
        public ExcelPropety EntityTypeExcel = ExcelPropety.CreateProperty<SysDataPrivilege>(x => x.EntityType);
        [Display(Name = "目标类型")]
        public ExcelPropety TargetTypeExcel = ExcelPropety.CreateProperty<SysDataPrivilege>(x => x.TargetType);
        [Display(Name = "权限范围")]
        public ExcelPropety ScopeExcel = ExcelPropety.CreateProperty<SysDataPrivilege>(x => x.Scope);
        [Display(Name = "自定义条件")]
        public ExcelPropety CustomConditionExcel = ExcelPropety.CreateProperty<SysDataPrivilege>(x => x.CustomCondition);
        [Display(Name = "优先级")]
        public ExcelPropety PriorityExcel = ExcelPropety.CreateProperty<SysDataPrivilege>(x => x.Priority);
        [Display(Name = "是否启用")]
        public ExcelPropety IsEnabledExcel = ExcelPropety.CreateProperty<SysDataPrivilege>(x => x.IsEnabled);

	    protected override void InitVM()
        {
        }

    }

    public class SysDataPrivilegeImportVm : BaseImportVM<SysDataPrivilegeTemplateVm, SysDataPrivilege>
    {

    }

}
